@echo off 
SET /A a=0
:labela
set /a a+=1
echo %a%
if %a%==5 (goto :labelb) else (goto :labela)
:labelb 
echo end